package com.golang.api.local;


public class ThreadHelper {


    private static final ThreadLocal<String> USER_ID = new ThreadLocal<>();


    public static void setUserId(String userId) {
        USER_ID.set(userId);
    }

    public static void removeUserId() {
        USER_ID.remove();
    }

    public static String getUserId() {
        return USER_ID.get();
    }


}
